package cn.yunyichina.provider.base.dao;

import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;
import cn.yunyichina.provider.iface.entity.PersonalUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2016-10-19 09:54:27
*/
@Repository
@MyBatisRepository
public interface PersonalUserDao extends BaseDao<PersonalUser>{
	/**
	 * 根据证件类型和证件号获取用户
	 * @param idCardNo
	 * @return
	 */
	public PersonalUser getByIdCardNo(@Param("idCardType") Short idCardType,@Param("idCardNo") String idCardNo);

	public List<PersonalUser> selectRelationPersonUser(@Param("userId") String userId);

	void updateStateByIds(@Param("userIds") List<String> userIds,@Param("enableFlag") Short enableFlag);
	PersonalUser selectByLoginName(@Param("loginName") String loginName );
	PersonalUser selectPersonalUserByOpenId(@Param("openId")String openId);
	List<PersonalUser> selectRegisterTgdAccount(Map<String,Object> queryRegisterAccountMap);
	Long selectRegisterTgdAccountNum(Map<String,Object> queryRegisterAccountMap);

}